﻿@model QDT.Core.Projects.Project

<div class="main">
    <div class="main_title">
        新增 <a href="@Url.Action("Index")" class="back_list">返回列表</a></div>
    <div class="blank5">
    </div>
    <form action="@Url.Action("UploadAgreement")" method="post">
        <table class="form">
            <input type="hidden" name="PID" value="720" />
            <tbody>
                <tr>
                    <td colspan="2" class="topTd"></td>
                </tr>
                <tr>
                    <td class="item_title">协议文件 : </td>
                    <td class="item_input">
                        <div class="button" id="Uplaod_Agreement" style="float: left; height: 23px; padding-top: 7px; text-align: center; width: 80px;" title="上传图片">上传协议</div>
                        <input type="text" id="Agreement" name="Agreement" style="border: 0; font-size: 0; height: 0; line-height: 0; margin: 0; padding: 0; width: 0;" value="" />
                        <a href="@Url.Action("GetPdf", "Image", new { file=Model.AgreementLink})" style="margin-left: 30px;height: 37px; line-height: 37px;" target="_blank">@Model.AgreementLink</a>
                        <script type="text/javascript">
                            KindEditor.ready(function (K) {
                                var editor = K.editor({
                                    allowFileManager: true,
                                    uploadJson: '/Home/UploadFile'
                                });
                                K('#Uplaod_Agreement').click(function () {
                                    editor.loadPlugin('image', function () {
                                        editor.plugin.imageDialog({
                                            showRemote: false,
                                            imageUrl: K('#Agreement').val(),
                                            clickFn: function (url) {
                                                K('#Agreement').val(url);
                                                editor.hideDialog();
                                            }
                                        });
                                    });
                                });

                            });
                        </script>
                    </td>
                </tr>
                <tr>
                    <td class="item_title"></td>
                    <td class="item_input">
                        <!--隐藏元素-->
                        <input type="submit" class="button" value="确定" />
                        <input type="reset" class="button" value="重置" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="bottomTd"></td>
                </tr>
            </tbody></table>
    </form>
</div>
<div id="info"></div>